package cn.appsys.service.developer;

import cn.appsys.dao.appcategory.DevUserMapper;
import cn.appsys.pojo.AppCategory;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.AppVersion;
import cn.appsys.pojo.DataDictionary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DevUserServiceImp implements  DevUserService{
     @Resource
     private DevUserMapper devUserMapper;

    @Override
    public List<AppInfo> getAppInfoListBiz(String querySoftwareName, Integer queryStatus, Integer queryCategoryLevel1, Integer queryCategoryLevel2, Integer queryCategoryLevel3, Integer queryFlatformId, Integer devid) {
        return devUserMapper.getAppInfoList(querySoftwareName,queryStatus,queryCategoryLevel1,queryCategoryLevel2,queryCategoryLevel3,queryFlatformId,devid);
    }

    @Override
    public List<DataDictionary> appFlatformBiz() {
        return devUserMapper.appFlatform();
    }

    @Override
    public List<DataDictionary> devStatusB() {
        return devUserMapper.devStatus();
    }

    @Override
    public List<AppCategory> oneSortBiz() {
        return devUserMapper.oneSort();
    }

    @Override
    public List<AppCategory> categoryLevel1ListBiz(AppCategory appCategory) {
        return devUserMapper.categoryLevel1List(appCategory);
    }

    @Override
    public AppInfo fomodifyBiz(int id) {
        return devUserMapper.fomodify(id);
    }

    @Override
    public int addListBiz(AppInfo appInfo) {
        return devUserMapper.addList(appInfo);
    }

    @Override
    public List<AppCategory> listaddBiz( ) {
        return devUserMapper.listadd();
    }

    @Override
    public List<AppCategory> secondaryBiz() {
        return devUserMapper.secondary();
    }

    @Override
    public List<AppCategory> Level3Biz() {
        return devUserMapper.Level3();
    }

    @Override
    public int updateBiz(AppInfo appInfo) {
        return devUserMapper.update(appInfo);
    }

    @Override
    public int deleteBiz(int id) {
        return devUserMapper.delete(id);
    }

    @Override
    public int versionaddBiz(AppVersion appVersion) {
        return devUserMapper.versionadd(appVersion);
    }
}
